package org.example.domain.activity.service;

import org.example.domain.activity.model.entity.PartakeRaffleActivityEntity;
import org.example.domain.activity.model.entity.UserRaffleOrderEntity;

public interface IRaffleActivityPartakeService {


    /**
     * 创建抽奖单；用户参与抽奖活动，扣减活动账户库存，产生抽奖单。
     * 如果存在未被使用的抽奖单则直接返回已存在的抽奖单
     * @param partakeRaffleActivityEntity
     * @return
     */
    UserRaffleOrderEntity createOrder(PartakeRaffleActivityEntity partakeRaffleActivityEntity);
    UserRaffleOrderEntity createOrder(String userId,Long activityId);
}
